package com.sandu.user.viewmodel.request

import androidx.lifecycle.MutableLiveData
import com.sandu.lib_mvvm.base.viewmodel.BaseViewModel
import com.sandu.lib_mvvm.ext.request
import com.sandu.lib_mvvm.state.ResultState
import com.sandu.lib_project_network.app.network.apiService
import com.sandu.lib_project_network.bean.IntegralResponse


/**
 * 作者　: sandu
 * 时间　: 2024/12/27
 * 描述　:
 */
class RequestMineViewModel : BaseViewModel() {

    var meData = MutableLiveData<ResultState<IntegralResponse>>()

    fun getIntegral() {
        request({ apiService!!.getIntegral() }, meData)
    }
}